package com.bsoft.gol.hcs.enumcase;

/**
 * Created by ChenJij on 2021/10/31.
 */
public enum RouteDetailTypeEnum {
    //随访类型，1门诊复诊2入组评估3问卷随访4指标检测5医护随访6健康宣教 7健康监测 8住院记录
    MZFZ("1", "门诊复诊"),
    RZPG("2", "入组评估"),
    WJSF("3", "问卷随访"),
    ZBJC("4", "指标检测"),
    YHSF("5", "医护随访"),
    JKXJ("6", "健康宣教"),
    JKJC("7", "健康监测"),
    ZYJL("8", "住院记录");

    private final String type;

    private final String name;

    RouteDetailTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }


    public static String getNameByKey(String type) {
        for (RouteDetailTypeEnum temp : RouteDetailTypeEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp.getName();
            }
        }
        return null;
    }
    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}